﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Delonix_Regia_Hotel
{
    public partial class BookingConfirmed : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string roomtype = Request.QueryString["roomtype"];
            Label15.Text = roomtype;
            string price = Request.QueryString["price"];
            Label1.Text = price;
            string dateofarrival = (string)Session["dateofarrival"];
            Label11.Text = dateofarrival;
            string nights = (string)Session["nights"];
            Label12.Text = nights;
            string dateofdeparture = (string)Session["dateofdeparture"];
            Label13.Text = dateofdeparture;
            string rooms = (string)Session["rooms"];
            Label14.Text = rooms;
            string title = (string)Session["title"];
            string firstname = (string)Session["firstname"];
            string lastname = (string)Session["lastname"];
            Label2.Text = title +" "+ firstname +" "+ lastname;
            string idenNo = (string)Session["idenNo"];
            Label3.Text = idenNo;
            string homeadd = (string)Session["homeadd"];
            Label4.Text = homeadd;
            string mailadd = (string)Session["mailadd"];
            Label5.Text = mailadd;
            string email = (string)Session["email"];
            Label6.Text = email;
            string contact = (string)Session["contact"];
            Label7.Text = contact;
            string cardtype = (string)Session["cardtype"];
            Label8.Text = cardtype;
            string cardno = (string)Session["cardno"];
            Label9.Text = cardno;
            string cardexpiry = (string)Session["cardexpiry"];
            Label10.Text = cardexpiry;
            Session.Abandon();
        }

        protected void LinkButton6_Click(object sender, EventArgs e)
        {
            Session.Remove("dateofarrival");
            Session.Remove("nights");
            Session.Remove("dateofdeparture");
            Session.Remove("rooms");
            Session.Remove("title");
            Session.Remove("firstname");
            Session.Remove("lastname");
            Session.Remove("idenNo");
            Session.Remove("homeadd");
            Session.Remove("mailadd");
            Session.Remove("email");
            Session.Remove("contact");
            Session.Remove("cardtype");
            Session.Remove("nights");
            Session.Remove("cardno");
            Session.Remove("cardexpiry");
        }

        protected void LinkButton7_Click(object sender, EventArgs e)
        {
            Session.Remove("dateofarrival");
            Session.Remove("nights");
            Session.Remove("dateofdeparture");
            Session.Remove("rooms");
            Session.Remove("title");
            Session.Remove("firstname");
            Session.Remove("lastname");
            Session.Remove("idenNo");
            Session.Remove("homeadd");
            Session.Remove("mailadd");
            Session.Remove("email");
            Session.Remove("contact");
            Session.Remove("cardtype");
            Session.Remove("nights");
            Session.Remove("cardno");
            Session.Remove("cardexpiry");
        }

        protected void LinkButton8_Click(object sender, EventArgs e)
        {
            Session.Remove("dateofarrival");
            Session.Remove("nights");
            Session.Remove("dateofdeparture");
            Session.Remove("rooms");
            Session.Remove("title");
            Session.Remove("firstname");
            Session.Remove("lastname");
            Session.Remove("idenNo");
            Session.Remove("homeadd");
            Session.Remove("mailadd");
            Session.Remove("email");
            Session.Remove("contact");
            Session.Remove("cardtype");
            Session.Remove("nights");
            Session.Remove("cardno");
            Session.Remove("cardexpiry");
        }

        protected void LinkButton9_Click(object sender, EventArgs e)
        {
            Session.Remove("dateofarrival");
            Session.Remove("nights");
            Session.Remove("dateofdeparture");
            Session.Remove("rooms");
            Session.Remove("title");
            Session.Remove("firstname");
            Session.Remove("lastname");
            Session.Remove("idenNo");
            Session.Remove("homeadd");
            Session.Remove("mailadd");
            Session.Remove("email");
            Session.Remove("contact");
            Session.Remove("cardtype");
            Session.Remove("nights");
            Session.Remove("cardno");
            Session.Remove("cardexpiry");
        }

        protected void LinkButton10_Click(object sender, EventArgs e)
        {
            Session.Remove("dateofarrival");
            Session.Remove("nights");
            Session.Remove("dateofdeparture");
            Session.Remove("rooms");
            Session.Remove("title");
            Session.Remove("firstname");
            Session.Remove("lastname");
            Session.Remove("idenNo");
            Session.Remove("homeadd");
            Session.Remove("mailadd");
            Session.Remove("email");
            Session.Remove("contact");
            Session.Remove("cardtype");
            Session.Remove("nights");
            Session.Remove("cardno");
            Session.Remove("cardexpiry");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Session.Remove("dateofarrival");
            Session.Remove("nights");
            Session.Remove("dateofdeparture");
            Session.Remove("rooms");
            Session.Remove("title");
            Session.Remove("firstname");
            Session.Remove("lastname");
            Session.Remove("idenNo");
            Session.Remove("homeadd");
            Session.Remove("mailadd");
            Session.Remove("email");
            Session.Remove("contact");
            Session.Remove("cardtype");
            Session.Remove("nights");
            Session.Remove("cardno");
            Session.Remove("cardexpiry");
            Response.Redirect("Home.aspx");
        }
    }
}